package jsyf.oa.entity.task;

import jsyf.oa.ientity.BaseEntity;

import com.alibaba.fastjson.JSONObject;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by y on 2018/6/5.
 */
@Entity
@Table(name = "T_SYS_YZM", schema = "oa", catalog = "")
public class YzmEntity extends BaseEntity {
    private String userId;
    private String yzm;
    private Date createTime;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getYzm() {
        return yzm;
    }

    public void setYzm(String yzm) {
        this.yzm = yzm;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID",getId());
        obj.put("USER_ID",getUserId());
        obj.put("YZM",getYzm());
        obj.put("CREATE_TIME",getCreateTime());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_SYS_YZM";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID","id");
        obj.put("USER_ID","userId");
        obj.put("YZM","yzm");
        obj.put("CREATE_TIME","createTime");
        return obj;
    }
}
